﻿using ELearningSystem.Gateway.Entities;
using FluentNHibernate.Mapping;

namespace ELearningSystem.Gateway.Mappings
{
    public class AttemptMap : ClassMap<Attempt>
    {
        public AttemptMap()
        {
            Id(x => x.Id);
            References(x=>x.Practice)
                .Not.LazyLoad()
                .Cascade.None();
            Map(x => x.IsCorrect);
        }
    }
}
